﻿/******************************************************************************
* File description: TimerCard_air.qml
* Function: 干燥的计时
* Current Version: 1.0.0
* Author: JNN
* Date: 2025-07-01
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/

import QtQuick 2.0
import "../components"

// 实验步骤里那个等待

Rectangle {

    id: root
    radius: 8*dp

    height: Math.max(60*dp, width*0.2)
    width: 210*dp

    property int pauseSecond: gStateExp.expAirPumpTime
    visible: gIsAirPumping

    color: Qt.rgba(1, 1, 1, 0.6)

    // 图标
    Row{
        x: parent.width*0.05
        anchors.verticalCenter: parent.verticalCenter
        height: 30*dp;  width: parent.width - 2*x
        spacing: 5*dp
        CustomImage{
            height: 23*dp; width: 23*dp
            source: "qrc:/picture/wait.png"
            anchors.verticalCenter: parent.verticalCenter
        }
        Text{
            id: text_pause
            text: qsTr("干燥中")
            font.pixelSize: config.fontsize_1
            anchors.verticalCenter: parent.verticalCenter
        }
    }
    // 计时
    Text {
        text: qsTr(funcTools.second2Time(pauseSecond))
        font.pixelSize: parent.width*0.05 + 8*dp
        font.bold: true
        x: parent.width - width - parent.width*0.05
        anchors.verticalCenter: parent.verticalCenter
    }

}
